@import "reset";
@import "loaders.css";
@import "markdown";

html{
  background: #555;
}

.clearfix:after {
  content: " ";
  display: block;
  clear: both;
  height: 0;
}
.clearfix {
  zoom: 1;
}

.text-center{text-align: center}

.text-right{text-align: right}

body{
  background: #f1f1f1;
}

//限制行字数
.text-overflow-1,
.text-overflow-2{
  overflow : hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.text-overflow-1{
  -webkit-line-clamp: 1;
}

.text-overflow-2{
  -webkit-line-clamp: 2;
}

.text-overflow{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

//字体对齐
.justify{
  text-align: justify;
}



#loader-screen{
   position: fixed;
   left: 0;
   right: 0;
   top:0;
   bottom: 0;
   z-index: 199999999;
   max-width: 540px;
   margin: auto;
   background: $themeColor;
   opacity: 1;
   transition: all .2s linear;
   display: flex;
   justify-content: center;
   align-items: center;
}

#loader-screen.hide{
   opacity: 0;
}

#loader-screen.none{
  display: none;
}


#app-root{
   overflow: hidden;
   max-width: 540px;
   margin: auto;
   position: fixed;
   background: #ececec;
   height: 100%;
   left: 0;
   right: 0;
   top:0;
   bottom: 0;
   z-index: 0;
  .router-content{
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
  }
}


#header{
  height:49px;
  width: 100%;
  border-bottom: 1px solid #ececec;
  background: #fff;
  overflow: hidden;
  position: relative;

  .header-scroll{
     display: flex;
     height: 100%;
     position: relative;
     z-index: 1;
  }

  .scroll-border{
    height: 2px;
    background: $themeColor;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    transform: translateX(0);
    transition: all .3s linear;
  }

  a{
    display: block;
    flex:1;
    text-align: center;
    line-height: 49px;
    color: #888;
    font-size: 14px;
    font-weight: bold;
    transition: all .2s linear;
  }

  a.router-link-active{
    position: relative;
    color:$themeColor;
  }
}

.iScrollVerticalScrollbar{
  position: absolute;
  z-index: 20;
  width: 3px;
  bottom: 2px;
  top: 2px;
  right: 1px;

  .iScrollIndicator{
    background: rgba(0,0,0,.5);
    border-radius: 4px;
  }
}

.visibility{
  visibility: hidden;
}



.tpl-html{
  display: flex;
  flex: 1;
  flex-direction: column;
}

.scroll {
  overflow: auto;
  -webkit-overflow-scrolling:touch;
}


.fade-enter-active, .fade-leave-active {
  transition: opacity .5s
}
.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
  opacity: 0
}


.slide-fade-enter-active {
  transition: all .3s ease;
}
.slide-fade-leave-active {
  transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.slide-fade-enter, .slide-fade-leave-active {
  transform: translateX(10px);
  opacity: 0;
}



.list-enter-active, .list-leave-active {
  transition: all 1s;
}
.list-enter, .list-leave-active {
  opacity: 0;
  transform: translateY(30px);
}


.list-complete-enter, .list-complete-leave-active {
  opacity: 0;
  transform: translateY(30px);
}
.list-complete-leave-active {
  position: absolute;
}


